Discover gists
feat: new feature
fix(scope): bug in scope
feat!: breaking change
/feat(scope)!: rework API
chore(deps): update dependencies
build
: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)ci
: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)chore
: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# init parameters | |
readonly geUrl=$1 | |
readonly bearerToken=$2 | |
readonly daysAgo=$3 | |
# init global vars | |
readonly maxBuildsPerBatch=100 | |
readonly recoveryFile="$0.out.build-scan-id" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -s https://bunnycdn.com/api/system/edgeserverlist -H "Accept: application/json" | jq -r .[] > /tmp/bunny_ips | |
echo "" >> /tmp/bunny_ips | |
curl -s https://bunnycdn.com/api/system/edgeserverlist/ipv6 -H "Accept: application/json" | jq -r .[] >> /tmp/bunny_ips | |
for ip in `cat /tmp/bunny_ips`; do ufw allow proto tcp from $ip comment 'Bunny IP'; done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adding Bootstrap to Rails 7 | |
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/ | |
INSTRUCTIONS | |
1. Add the following to Gemfile: | |
gem "bootstrap" | |
gem "sassc-rails" |
Asset textures often need to be resized or the compression method changed. Large Sized Textures cause issues for your players such as the map not loading making them fall through the map or other models not loading either. FXServer will warn you in the console if your YTD files are too large.
If you have issues compressing textures, feel free to comment and I’ll try to get back to you.
Best way to keep the quality of the file, you are going to resize is to keep the image in a DDS format (DirectDraw Surface) DDS is a compressed format and thus cannot be opened the same way a PNG or JPEG can.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | LAFBD-41 | |
---|---|---|
2 | SSNI-497 | |
3 | ABP-984 | |
4 | IPX-580 | |
5 | IPX-811 | |
6 | IPX-177 | |
7 | STARS-804 | |
8 | SMBD-115 | |
9 | ABP-968 | |
10 | ABF-017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# undo: reverts the last command, as long as there is a registered handler | |
# for it. | |
# | |
# Usage: | |
# | |
# $ undo | |
# | |
# There are no options. | |
# | |
# There are by default registered handlers for the following commands: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collection of scripts mostly from Pete, but also taken from the forums. Note you can always run a saved classifier using the | |
runClassifier() command, with the file path included as a string. | |
TOC | |
A simple cell classifier.groovy - One way to classify cells. | |
A simple classifier 2.groovy - Another way. | |
Annotation Classifications to Name field.groovy - Sets the Name of the annotation to its classification. Useful for applying a second |
NewerOlder